package com.tao.erp.goods.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tao.erp.goods.dao.SupplierMapper;
import com.tao.erp.goods.pojo.Supplier;
import com.tao.erp.goods.service.SupplierService;

@Service
public class SupplierServiceImpl implements SupplierService {
	
	@Autowired
	private SupplierMapper supplierMapper;

	@Override
	public List<Supplier> selectSupplierList(Supplier supplier) {
		return supplierMapper.selectSupplierList(supplier);
	}

	@Override
	public int insertSupplier(Supplier supplier) {
		return supplierMapper.insertSupplier(supplier);
	}

	@Override
	public int deleteSupplierById(Integer uuid) {
		return supplierMapper.deleteSupplierById(uuid);
	}

	@Override
	public int updateSupplier(Supplier supplier) {
		return supplierMapper.updateSupplier(supplier);
	}

	@Override
	public Supplier selectSupplierById(Integer uuid) {
		return supplierMapper.selectSupplierById(uuid);
	}

}
